<%@ page language="java" pageEncoding="ISO-8859-1"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

/*
Configure menu styles below 
NOTE: To edit the link colors, go to the STYLE tags and edit the ssm2Items colors
*/
YOffset=150; // no quotes!!
XOffset=0;
staticYOffset=0; // no quotes!!
slideSpeed=10 // no quotes!!
waitTime=200; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
menuBGColor="#99AADD";
menuIsStatic="no"; //this sets whether menu should stay static on the screen
menuWidth=200; // Must be a multiple of 10! no quotes!!
menuCols=2;
hdrFontFamily="Arial";
hdrFontSize="2";
hdrFontColor="white";
hdrBGColor="#034999"; //"#99AADD";
hdrAlign="left";
hdrVAlign="center";
hdrHeight="10";
linkFontFamily="Arial";
linkFontSize="2";
linkBGColor="white";
linkOverBGColor="#FFEEAA"; //"#FFEEAA";
linkTarget="_top";
linkAlign="Left";
barBGColor="#034999"; //"#99AADD";
barFontFamily="Arial";
barFontSize="2";
barFontColor="#FFFFFF"; //"#FFFFFF";
barVAlign="center";
barWidth=17; // no quotes!!
barText="MENU"; // IMG tag supported. Put exact html for an image to show.

///////////////////////////

// ssmItems[...]=[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header

<c:choose>
	<c:when test="${menu ne null}">
		${menu}
	</c:when>
	<c:otherwise>
		ssmItems[0]=['<bean:message key="app.menu.expired"/>']
		ssmItems[1]=['<bean:message key="app.menu.inicio"/>', './home.do',]
		ssmItems[2]=['<bean:message key="app.menu.logout"/>', './logout.do',""]
	</c:otherwise>
</c:choose>

buildMenu();
